function open_close(id,parent_id,whichli) {
	var obj = document.getElementById(id)
	alt_on_off(whichli)
	close_other(id,parent_id,whichli)
	if(obj.style.display == 'none') {
		Effect.BlindDown(id,{ duration: 0.3 });
		}
	if(obj.style.display != 'none') {
		Effect.BlindUp(id,{ duration: 0.3 });
		}
	}
	
function alt_on_off(whichli) {
	var obj = whichli
	if(obj.className == 'on') {
		obj.className = 'off'
		}
	else {
		obj.className ='on'
		}
	}
	
function mid_bar_hide() {
	document.getElementById("mid_bar").style.display = 'none'
}
	
function close_other(id,parent_id,whichli) {
	var obj = document.getElementById(id)
	var parent = document.getElementById(parent_id)
	var ulItems = parent.getElementsByTagName('ul')
	for(i = 0;i < ulItems.length;i++) {
		if(ulItems[i] != obj) Effect.BlindUp(ulItems[i].id,{ duration: 0.3 })
	}
	var liItems = parent.getElementsByTagName('li')
	for(i = 0;i < liItems.length;i++) {
		if(liItems[i] != whichli && liItems[i].className == 'on') 
		liItems[i].className = 'off'
	} 
}

function show_mid_container() {
	document.getElementById("mid_container").style.display = 'table-cell'
}

var map = null;
  var geocoder = null;


// map
var map = null;
var geocoder = null;

function initialize() {
  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("cinema_map"));
    map.setCenter(new GLatLng(39.917, 116.397), 13);
    geocoder = new GClientGeocoder();
  }
}

function showAddress(address) {
  if (geocoder) {
    geocoder.getLatLng(
      address,
      function(point) {
        if (!point) {
          alert("Can`t find" + address);
        } else {
          map.setCenter(point, 16);
          var marker = new GMarker(point);
          map.addOverlay(marker);
          marker.openInfoWindowHtml('address');
        }
      }
    );
  }
}

